package practice.library.gremlin_scala.example


/**
  * Created by lovepocky(lovepocky@foxmail.com) on 2016/6/3.
  */
class TitanClient {
	
	import org.apache.tinkerpop.gremlin.driver._
	
	//val cluster = Cluster.build("192.168.1.160").create()
	//val cluster = Cluster.open("src/main/resources/titan/remote-192.168.1.160.yaml")
	/*val config = new BaseConfiguration
	config.setProperty("hosts", "192.168.1.160")*/
	val cluster = Cluster.open("src/main/resources/titan/remote-192.168.1.160.yaml")
	val client = cluster.connect()
	
	def test() = {
		val result = client.submitAsync("g.V().values('name')").get.all()
		//result.whenComplete()
	}
}
